package com.yonyou.distribute.controller;

import com.yonyou.distribute.service.LocalService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class LocalController {

    @Resource
    private LocalService localService;

    @GetMapping("/local/stock/deduct")
    public String deduct(){
        this.localService.deduct();
        return "hello stock deduct";
    }
}
